package com.haikesi.api.resource.dao;

import com.haikesi.api.resource.domain.po.ResourcesPO;
import com.haikesi.api.resource.domain.vo.ResourecesFlagVO;
import com.haikesi.api.resource.domain.vo.ResourecesSearchVO;
import com.haikesi.api.resource.domain.vo.ResourecesVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
@Repository
public interface ResourcesDao extends Mapper<ResourcesPO> {
	List<ResourecesVO> getResourceManage(ResourecesSearchVO resourecesSearchVO );
	

	 void deleteResource(@Param("oldListId")List<String> oldListId);
	 
	void  insertResource(@Param("newListId")List<String> oldListId,@Param("authorityId")String authorityId);

	 void deleteResourceById(@Param("id")String id);

	List<ResourecesFlagVO> getList(ResourecesSearchVO searchVO);
}